Optimal. Leaf size=171 \[ -\frac{\sqrt{b} \left (15 a^2-20 a b+8 b^2\right ) \tanh ^{-1}\left (\frac{\sqrt{b} \cot (c+d x)}{\sqrt{a+b \cot ^2(c+d x)}}\right )}{8 d}-\frac{b \cot (c+d x) \left (a+b \cot ^2(c+d x)\right )^{3/2}}{4 d}-\frac{b (7 a-4 b) \cot (c+d x) \sqrt{a+b \cot ^2(c+d x)}}{8 d}-\frac{(a-b)^{5/2} \tan ^{-1}\left (\frac{\sqrt{a-b} \cot (c+d x)}{\sqrt{a+b \cot ^2(c+d x)}}\right )}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.186351, antiderivative size = 171, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 8, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {3661, 416, 528, 523, 217, 206, 377, 203} \[ -\frac{\sqrt{b} \left (15 a^2-20 a b+8 b^2\right ) \tanh ^{-1}\left (\frac{\sqrt{b} \cot (c+d x)}{\sqrt{a+b \cot ^2(c+d x)}}\right )}{8 d}-\frac{b \cot (c+d x) \left (a+b \cot ^2(c+d x)\right )^{3/2}}{4 d}-\frac{b (7 a-4 b) \cot (c+d x) \sqrt{a+b \cot ^2(c+d x)}}{8 d}-\frac{(a-b)^{5/2} \tan ^{-1}\left (\frac{\sqrt{a-b} \cot (c+d x)}{\sqrt{a+b \cot ^2(c+d x)}}\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3661
Rule 416
Rule 528
Rule 523
Rule 217
Rule 206
Rule 377
Rule 203
Rubi steps
\begin{align*} \int \left (a+b \cot ^2(c+d x)\right )^{5/2} \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{\left (a+b x^2\right )^{5/2}}{1+x^2} \, dx,x,\cot (c+d x)\right )}{d}\\ &=-\frac{b \cot (c+d x) \left (a+b \cot ^2(c+d x)\right )^{3/2}}{4 d}-\frac{\operatorname{Subst}\left (\int \frac{\sqrt{a+b x^2} \left (a (4 a-b)+(7 a-4 b) b x^2\right )}{1+x^2} \, dx,x,\cot (c+d x)\right )}{4 d}\\ &=-\frac{(7 a-4 b) b \cot (c+d x) \sqrt{a+b \cot ^2(c+d x)}}{8 d}-\frac{b \cot (c+d x) \left (a+b \cot ^2(c+d x)\right )^{3/2}}{4 d}-\frac{\operatorname{Subst}\left (\int \frac{a \left (8 a^2-9 a b+4 b^2\right )+b \left (15 a^2-20 a b+8 b^2\right ) x^2}{\left (1+x^2\right ) \sqrt{a+b x^2}} \, dx,x,\cot (c+d x)\right )}{8 d}\\ &=-\frac{(7 a-4 b) b \cot (c+d x) \sqrt{a+b \cot ^2(c+d x)}}{8 d}-\frac{b \cot (c+d x) \left (a+b \cot ^2(c+d x)\right )^{3/2}}{4 d}-\frac{(a-b)^3 \operatorname{Subst}\left (\int \frac{1}{\left (1+x^2\right ) \sqrt{a+b x^2}} \, dx,x,\cot (c+d x)\right )}{d}-\frac{\left (b \left (15 a^2-20 a b+8 b^2\right )\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{a+b x^2}} \, dx,x,\cot (c+d x)\right )}{8 d}\\ &=-\frac{(7 a-4 b) b \cot (c+d x) \sqrt{a+b \cot ^2(c+d x)}}{8 d}-\frac{b \cot (c+d x) \left (a+b \cot ^2(c+d x)\right )^{3/2}}{4 d}-\frac{(a-b)^3 \operatorname{Subst}\left (\int \frac{1}{1-(-a+b) x^2} \, dx,x,\frac{\cot (c+d x)}{\sqrt{a+b \cot ^2(c+d x)}}\right )}{d}-\frac{\left (b \left (15 a^2-20 a b+8 b^2\right )\right ) \operatorname{Subst}\left (\int \frac{1}{1-b x^2} \, dx,x,\frac{\cot (c+d x)}{\sqrt{a+b \cot ^2(c+d x)}}\right )}{8 d}\\ &=-\frac{(a-b)^{5/2} \tan ^{-1}\left (\frac{\sqrt{a-b} \cot (c+d x)}{\sqrt{a+b \cot ^2(c+d x)}}\right )}{d}-\frac{\sqrt{b} \left (15 a^2-20 a b+8 b^2\right ) \tanh ^{-1}\left (\frac{\sqrt{b} \cot (c+d x)}{\sqrt{a+b \cot ^2(c+d x)}}\right )}{8 d}-\frac{(7 a-4 b) b \cot (c+d x) \sqrt{a+b \cot ^2(c+d x)}}{8 d}-\frac{b \cot (c+d x) \left (a+b \cot ^2(c+d x)\right )^{3/2}}{4 d}\\ \end{align*}
Mathematica [C] time = 1.72625, size = 259, normalized size = 1.51 \[ -\frac{\sqrt{b} \left (15 a^2-20 a b+8 b^2\right ) \log \left (\sqrt{b} \sqrt{a+b \cot ^2(c+d x)}+b \cot (c+d x)\right )+b \cot (c+d x) \sqrt{a+b \cot ^2(c+d x)} \left (9 a+2 b \cot ^2(c+d x)-4 b\right )-4 i (a-b)^{5/2} \log \left (-\frac{4 i \left (\sqrt{a-b} \sqrt{a+b \cot ^2(c+d x)}+a-i b \cot (c+d x)\right )}{(a-b)^{7/2} (\cot (c+d x)+i)}\right )+4 i (a-b)^{5/2} \log \left (\frac{4 i \left (\sqrt{a-b} \sqrt{a+b \cot ^2(c+d x)}+a+i b \cot (c+d x)\right )}{(a-b)^{7/2} (\cot (c+d x)-i)}\right )}{8 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.057, size = 462, normalized size = 2.7 \begin{align*} -{\frac{{b}^{2} \left ( \cot \left ( dx+c \right ) \right ) ^{3}}{4\,d}\sqrt{a+b \left ( \cot \left ( dx+c \right ) \right ) ^{2}}}-{\frac{9\,\cot \left ( dx+c \right ) ab}{8\,d}\sqrt{a+b \left ( \cot \left ( dx+c \right ) \right ) ^{2}}}-{\frac{15\,{a}^{2}}{8\,d}\sqrt{b}\ln \left ( \cot \left ( dx+c \right ) \sqrt{b}+\sqrt{a+b \left ( \cot \left ( dx+c \right ) \right ) ^{2}} \right ) }+{\frac{{b}^{2}\cot \left ( dx+c \right ) }{2\,d}\sqrt{a+b \left ( \cot \left ( dx+c \right ) \right ) ^{2}}}+{\frac{5\,a}{2\,d}{b}^{{\frac{3}{2}}}\ln \left ( \cot \left ( dx+c \right ) \sqrt{b}+\sqrt{a+b \left ( \cot \left ( dx+c \right ) \right ) ^{2}} \right ) }-{\frac{1}{d}{b}^{{\frac{5}{2}}}\ln \left ( \cot \left ( dx+c \right ) \sqrt{b}+\sqrt{a+b \left ( \cot \left ( dx+c \right ) \right ) ^{2}} \right ) }+{\frac{b}{d \left ( a-b \right ) }\sqrt{{b}^{4} \left ( a-b \right ) }\arctan \left ({ \left ( a-b \right ){b}^{2}\cot \left ( dx+c \right ){\frac{1}{\sqrt{{b}^{4} \left ( a-b \right ) }}}{\frac{1}{\sqrt{a+b \left ( \cot \left ( dx+c \right ) \right ) ^{2}}}}} \right ) }-3\,{\frac{a\sqrt{{b}^{4} \left ( a-b \right ) }}{d \left ( a-b \right ) }\arctan \left ({\frac{ \left ( a-b \right ){b}^{2}\cot \left ( dx+c \right ) }{\sqrt{{b}^{4} \left ( a-b \right ) }\sqrt{a+b \left ( \cot \left ( dx+c \right ) \right ) ^{2}}}} \right ) }+3\,{\frac{{a}^{2}\sqrt{{b}^{4} \left ( a-b \right ) }}{db \left ( a-b \right ) }\arctan \left ({\frac{ \left ( a-b \right ){b}^{2}\cot \left ( dx+c \right ) }{\sqrt{{b}^{4} \left ( a-b \right ) }\sqrt{a+b \left ( \cot \left ( dx+c \right ) \right ) ^{2}}}} \right ) }-{\frac{{a}^{3}}{d{b}^{2} \left ( a-b \right ) }\sqrt{{b}^{4} \left ( a-b \right ) }\arctan \left ({ \left ( a-b \right ){b}^{2}\cot \left ( dx+c \right ){\frac{1}{\sqrt{{b}^{4} \left ( a-b \right ) }}}{\frac{1}{\sqrt{a+b \left ( \cot \left ( dx+c \right ) \right ) ^{2}}}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \cot \left (d x + c\right )^{2} + a\right )}^{\frac{5}{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.22061, size = 3595, normalized size = 21.02 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \cot ^{2}{\left (c + d x \right )}\right )^{\frac{5}{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \cot \left (d x + c\right )^{2} + a\right )}^{\frac{5}{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]